package com.mate.cloud.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.mate.cloud.dataobject.UserLike;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;


@Mapper
public interface UserLikeMapper extends BaseMapper<UserLike> {

    Page<UserLike> findByLikedUserIdAndStatus(String likedUserId, Integer status, Pageable pageable);

    Page<UserLike> findByLikedPostIdAndStatus(String likedPostId, Integer status, Pageable pageable);

    UserLike findByLikedUserIdAndLikedPostId(String likedUserId, String likedPostId);

}
